<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%@include file="/view/resource.jsp"%>
		<script type="text/javascript"
			src="${msUrl}/js/ux/company/company.js"></script>
	</head>
	<body class="easyui-layout">
		<!-- Search panel start -->
		<div class="ui-search-panel" region="north" style="height: 80px;"
			title="搜索框"
			data-options="striped: true,collapsible:false,iconCls:'icon-search',border:false">
			<form id="searchForm">
				<p class="ui-fields">
					<label class="ui-label">
						单位名称:
					</label>
					<input name="name" class="easyui-box ui-text"
						style="width: 100px;">
				</p>
				<a href="#" id="btn-search" class="easyui-linkbutton"
					iconCls="icon-search">搜索</a>
			</form>
		</div>
		<!--  Search panel end -->

		<!-- DataList  -->
		<div region="center" border="false">
			<table id="data-list"></table>
		</div>
		
		<!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:400px;height:300px;">  
     	<form id="editForm" class="ui-form" method="post"> 
     		 <input class="hidden" type="text" name="id"> 
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">单位信息</div>   
	           <div class="fitem">  
	               <label>单位名称:</label>  
	               <input class="easyui-validatebox" type="text" name="name" data-options="required:true,validType:'length[1,20]'">
               </div>
               <div class="fitem">
	               <label>联系人:</label>  
	               <input class="easyui-validatebox" type="text" name="linkman" data-options="required:true,validType:'length[1,20]'">
               </div>
               <div class="fitem">
	               <label>挂钩维护公司:</label>  
	               <input id="cc3" class="easyui-combobox" name="serCompanyId" data-options="valueField:'id',
	               textField:'name',url:'../serCompany/loadSerCompanyList.do'">
               </div>
               <div class="fitem">
	           	   <label>公司电话:</label>  
	               <input class="easyui-validatebox" type="text" name="phoneNumber" data-options="required:true,validType:'phone'">
               </div>
               <div class="fitem">
	               <label>手机号码:</label>  
	               <input class="easyui-validatebox" type="text" name="mobileNumber" data-options="required:true,validType:'mobile'">
               </div>
               <div class="fitem">
	               <label>市:</label>  
	               <input id="cc1" class="easyui-combobox" name="cityCode" data-options="valueField:'code',
	               textField:'name',url:'../district/loadDistrictList.do?parentCode=440000',onSelect: function(rec){ 
	               var url = '../district/loadDistrictList.do?parentCode='+rec.code;
	               $('#cc2').combobox('reload', url);
	               }
	               ">
               </div>
               <div class="fitem">
	               <label>县(区、县级市):</label>  
	               <input id="cc2" class="easyui-combobox" name="countyCode" data-options="valueField:'code',
	               textField:'name'">
               </div>
               <div class="fitem">
	               <label>地址:</label>  
	               <input class="easyui-validatebox" type="text" name="address" data-options="required:true,validType:'length[1,100]'">
	           </div>  
	         </div>
     	</form>
  	 </div> 
  	 
  	 <!-- View Form -->
     <div id="view-win" class="easyui-dialog" title="查看" data-options="closed:true,iconCls:'icon-search',modal:true" style="width:400px;height:300px;">  
     	<form id="viewForm" class="ui-form" method="post">  
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">单位信息</div>   
	           <div class="fitem">  
	               <label>单位名称:</label>  
	               <input class="easyui-validatebox" type="text" name="name" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
               </div>
               <div class="fitem">
	               <label>联系人:</label>  
	               <input class="easyui-validatebox" type="text" name="linkman" data-options="required:true,validType:'length[1,20]'"  disabled="disabled">
               </div>
               <div class="fitem">
	               <label>挂钩维护公司:</label>  
	               <input id="cc6" class="easyui-combobox" name="serCompanyId" data-options="valueField:'id',
	               textField:'name',url:'../serCompany/loadSerCompanyList.do'"  disabled="disabled">
               </div>
               <div class="fitem">
	           	   <label>公司电话:</label>  
	               <input class="easyui-validatebox" type="text" name="phoneNumber" data-options="required:true,validType:'phone'" disabled="disabled">
               </div>
               <div class="fitem">
	               <label>手机号码:</label>  
	               <input class="easyui-validatebox" type="text" name="mobileNumber" data-options="required:true,validType:'mobile'" disabled="disabled">
               </div>
               <div class="fitem">
	               <label>市:</label>  
	               <input id="cc4" class="easyui-combobox" name="cityCode" data-options="valueField:'code',
	               textField:'name',url:'../district/loadDistrictList.do?parentCode=440000',onSelect: function(rec){ 
	               var url = '../district/loadDistrictList.do?parentCode='+rec.code;
	               $('#cc2').combobox('reload', url);
	               }
	               " disabled="disabled">
               </div>
               <div class="fitem">
	               <label>县(区、县级市):</label>  
	               <input id="cc5" class="easyui-combobox" name="countyCode" data-options="valueField:'code',
	               textField:'name'" disabled="disabled">
               </div>
               <div class="fitem">
	               <label>地址:</label>  
	               <input class="easyui-validatebox" type="text" name="address" data-options="required:true,validType:'length[1,100]'" disabled="disabled">
	           </div>    
	         </div>
     	</form>
  	 </div> 
	</body>
</html>
